<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<title>Examples</title>
	<meta name="description" content="">
	<meta name="keywords" content="">
	<link href="" rel="stylesheet">
	<script>
		window.onload = function () {
			var str = 'javascript';
			var re = /java/;
			var re2 = /^java$/;
			alert(re.test(str))     //true
			alert(re2.test(str))     //true


			var str = '12dajs k43f lksd 433';
			// alert(str.replace(/\W/g,'换'));

			// alert(str.replace(/^java$/g,'*'))

			// alert(str.match(/\d+/g));  //\d转意字符 表示 数字 ／g全局
		}
	</script>
</head>
<body>
  <li><a href="index.html">index.html</a></li>
	<li><a href="index2.html">index2.html</a></li>
	<li><a href="index3.html">index3.html</a></li>
	<li><a href="index4.html">index4.html</a></li>
	<li><a href="index5.html">index5.html</a></li>
	<li><a href="index6.html">index6.html</a></li>
	<li><a href="index7.html">index7.html</a></li>
	<li><a href="index8.html">index8.html</a></li>
</body>
</html>